package com.woniuxy.controller;

import com.woniuxy.entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 佘赛飞
 * @create 2021-11-18 5:32 下午
 */
@Controller
@RequestMapping("/ruser")
public class StudentController {
    @RequestMapping("/updateStudent")
    public ModelAndView UpdateStudent(Student student){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("student","传入的对象是:"+student);
        modelAndView.setViewName("Objectview");
        return modelAndView;

    }
}
